<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>资讯列表</title>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="format-detection" content="telephone=no"/>
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all" />
    <link rel="stylesheet" href="../../css/style.css" media="all" />
</head>

<body class="childrenBody">
<input type="hidden" id="flag" th:value="${flag}"/>
<blockquote class="layui-elem-quote information_search">
    <form class="layui-form">
        <div class="layui-form-item" style="margin-bottom: 0px;">
            <div class="layui-inline">
                <label class="layui-form-label">标题</label>
                <div class="layui-input-inline">
                    <input type="text" value="" placeholder="请输入标题..." class="layui-input search_input" id="search_input"/>
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">栏目</label>
                <div class="layui-input-inline">
                    <select name="navType" id="navType">
                        <option value=""></option>
                        <option th:each="nav,iterStat:${navList}" th:value="${iterStat.index}" th:text="${nav}"></option>
                    </select>
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">起始时间</label>
                <div class="layui-input-inline">
                    <input type="text" placeholder="起始时间..." class="layui-input linksTime" lay-verify="date" onclick="layui.laydate({elem:this})" id="startTime"/>
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">结束时间</label>
                <div class="layui-input-inline">
                    <input type="text" placeholder="结束时间..." class="layui-input linksTime" lay-verify="date" onclick="layui.laydate({elem:this})" id="endTime"/>
                </div>
                <a class="layui-btn search_btn" id="searchBtn">查询</a>
            </div>
        </div>
    </form>
</blockquote>
<div class="layui-form" id="informations_list">
    <table class="layui-table">
        <colgroup>
            <col width="6%"></col>
            <col width="21%"/>
            <col width="12%"/>
            <col width="12%"/>
            <col width="12%"/>
            <col width="12%"/>
            <col width="12%"/>
            <col width="18%"/>
        </colgroup>
        <thead>
        <tr>
            <!--<th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" id="allChoose"/></th>-->
            <th>选择</th>
            <th>标题</th>
            <th>栏目</th>
            <th>状态</th>
            <th>是否推荐</th>
            <th>是否展示</th>
            <th>来源</th>
            <th>作者</th>
        </tr>
        </thead>
        <tbody id="informationListTb">

        </tbody>
    </table>
</div>
<div id="pagination">
    <!--<input type="hidden" th:value="${informationDataMap.total}" id="pageTotal"/> &lt;!&ndash; 总条数 &ndash;&gt;-->
    <!--<input type="hidden" th:value="${informationDataMap.page+1}" id="pageNum"/>　　&lt;!&ndash; 第几页 &ndash;&gt;-->
</div>


<script type="text/html" id="informationList">
    {{if list != null}}
    {{each list as value i}}
    <tr>
        <td><input type="radio" name="checked" value="" title=" " lay-skin="primary"/></td>
        <td infoId="{{value.id}}">{{value.title}}</td>

        <td th:include="fragment/fragment::openNavFragment"></td>

        <td infoStatus="{{value.status}}">{{value.statusValue}}</td>

        {{if value.isIntro == "0"}}
            <td><input type="checkbox" name="isIntro" lay-skin="switch" lay-text="是|否" checked="checked" disabled="disabled" /></td>
        {{else}}
            <td><input type="checkbox" name="isIntro" lay-skin="switch" lay-text="是|否" disabled="disabled" /></td>
        {{/if}}

        {{if value.isShow == "0"}}
            <td><input type="checkbox" name="isIntro" lay-skin="switch" lay-text="是|否" checked="true" disabled="disabled" /></td>
        {{else}}
            <td><input type="checkbox" name="isIntro" lay-skin="switch" lay-text="是|否" disabled="disabled" /></td>
        {{/if}}

        {{if value.fromType == "0"}}
            <td>原创</td>
        {{else}}
            <td>转载</td>
        {{/if}}
        <td>{{value.author}}</td>
    </tr>
    {{/each}}
    {{else}}
    <tr style="text-align: center;"><td colspan="7">暂无数据</td></tr>
    {{/if}}
</script>


<script type="text/javascript" th:src="@{/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/js/information/informationOpenList.js}"></script>
<script type="text/javascript" th:src="@{/js/common/template.js}"></script>


</body>
</html>